// pages/userCenter/myGZDnote/myGZDnote.js
const request = require('../../../utils/request')

Page({
  data: {
    list: []
  },

  onLoad: function (options) {
    this.getList()
  },

  getList() {
    wx.showLoading()
    request.get('my_guazhangdan')
      .then(res => {
        wx.hideLoading()
        if (res.data && res.data.length) {
         this.setData({
           list: res.data
         })
       }
      })
      .catch(error => {
        wx.showToast({
          icon: 'none',
          title: error.msg
        })
      })
      .finally(_ => {
        
      })
  },

  onPullDownRefresh: function () {
    
  },

  onReachBottom: function () {

  },
})